//
//  CoreDataStack.h
//  SpriteCoreData
//
//  Created by ClassWizard on 15/8/6.
//  Copyright (c) 2015年 Apportable. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

@interface CoreDataStack : NSObject

@property (readonly, strong, nonatomic) NSManagedObjectContext *context;
@property (readonly, strong, nonatomic) NSManagedObjectModel *model;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *psc;
@property (readonly, strong, nonatomic) NSPersistentStore *store;

- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;
+ (CoreDataStack *)sharedCoreDataStack;

@end
